home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4066 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help on screen color needed.
  5. Date: 1 Feb 1996 10:27 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <1FEB199610273877@erich.triumf.ca>
  9. References: <4eqp7c$i47@news.duke.edu>
  10. NNTP-Posting-Host: erich.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4eqp7c$i47@news.duke.edu>, huettel@psych.duke.edu (Scott Huettel) writes...
  14.  
  15. >One relatively minor problem is that we are unable to
  16. >change the background color of the screen (e.g., make
  17. >the screen turn red at a particular time) using the 
  18. >designated commands.  The compiler (a new Borland compiler;
  19. >I am not sure of the version, offhand) suggests using the
  20. > setbkcolor(int) command, where int is either an integer
  21. >or a pre-defined color name.  Unfortunately, we receive
  22. >error messages, such as "unknown command" or something
  23. >similar, when we run this portion of the code.  
  24.  
  25. Giving the _exact_ error message would be more helpful than saying "something
  26. like..."
  27.  
  28. >    I have included the graphic.h file per the 
  29. >compiler's instructions, and there are no obvious 
  30. >typos or other problems.  Does anyone have a suggestion
  31. >as to a possible source for this error?  Are there other 
  32. >commands/ways to change the screen color in a DOS app?
  33.  
  34. Did you tell the linker to search the graphics library??
  35.  
  36. Look under Options/Linker (or thereabouts) in the IDE for a tick box that
  37. indicates the graphics library should be searched.
  38.  
  39. graphic.h just tells the compiler what the graphics functions look like - you
  40. have to separately tell the linker to find those functions.
  41.  
  42. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  43. Internet: bennett@triumf.ca         | of one another only when one can be
  44. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  45. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  46. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.